﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkOrder.Domain;

namespace WorkOrder.Infastructure
{
    public class MyDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public MyDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }
        public DbSet<EnterOutModel> EnterOutModels { get; set; }//出入库表
        public DbSet<ProductModel> ProductModels { get; set; }//产品类别
        public DbSet<StockDistributeModel> StockDistributeModels { get; set; }//库存分布
        public DbSet<StockModel> StockModels { get; set; }//库存表
        public DbSet<WarnModel> WarnModels { get; set; }//库存预警
    }
}
